<!DOCTYPE html>
<!--[if lt IE 7]>
<html class="lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]>
<html class="lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]>
<html class="lt-ie9" lang="en"> <![endif]-->
<!--[if gt IE 8]><!-->
<html lang="en"> <!--<![endif]-->

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>WMS</title>

    <link rel="stylesheet" href="dist/css/vendor.min.css">
    @@cssTag

    <style>
        body {
            font: 13px/20px 'microsoft yahei', 'Lucida Grande', Tahoma, Verdana, sans-serif;
            background-repeat: no-repeat;
            background-image: url("img/bg.jpg");
            background-size: cover;
        }

        .foot {
            width: 100%;
            height: 30px;
            background: rgba(0, 0, 0, 0.4);
            font-size: 12px;
            text-align: center;
            line-height: 30px;
            color: #222;
            position: fixed;
            bottom: 0
        }

        .container {
            position: relative;
            margin: 14% 46%;
            width: 640px;
        }

        .login {
            position: relative;
            margin: 0 auto;
            padding: 20px;
            width: 320px;
            background: white;
            border-radius: 3px;
            -webkit-box-shadow: 0 0 200px rgba(255, 255, 255, 0.5), 0 1px 2px rgba(0, 0, 0, 0.3);
            box-shadow: 0 0 200px rgba(255, 255, 255, 0.5), 0 1px 2px rgba(0, 0, 0, 0.3);
            letter-spacing: 2px;
        }

        .login:before {
            content: '';
            position: absolute;
            top: -8px;
            right: -8px;
            bottom: -8px;
            left: -8px;
            z-index: -1;
            border-radius: 4px;
        }

        .login h1 {
            margin: -20px -20px 21px;
            line-height: 40px;
            font-size: 18px;
            color: #fff;
            text-align: center;
            text-shadow: 0 1px white;
            background: #09c;
            border-bottom: 1px solid #cfcfcf;
            border-radius: 3px 3px 0 0;
            background-image: -webkit-linear-gradient(top, whiteffd, #eef2f5);
            background-image: -moz-linear-gradient(top, whiteffd, #eef2f5);
            background-image: -o-linear-gradient(top, whiteffd, #eef2f5);
            background-image: linear-gradient(to bottom, whiteffd, #eef2f5);
            -webkit-box-shadow: 0 1px whitesmoke;
            box-shadow: 0 1px whitesmoke;

        }

        .login p {
            margin: 25px 0 0;
        }

        .login p:first-child {
            margin-top: 25px;
        }

        .login p.remember_me {
            float: left;
            line-height: 31px;
        }

        .login p.remember_me label {
            font-size: 12px;
            color: #777;
            cursor: pointer;
        }

        .login p.remember_me input {
            position: relative;
            bottom: 3px;
            margin-right: 4px;
            vertical-align: middle;
        }

        .login p.submit {
            text-align: right;
        }

        .login-help {
            margin: 20px 0;
            font-size: 11px;
            color: white;
            text-align: center;
            text-shadow: 0 1px #2a85a1;
        }

        .login-help a {
            color: #cce7fa;
            text-decoration: none;
        }

        .login-help a:hover {
            text-decoration: underline;
        }

        :-moz-placeholder {
            color: #c9c9c9 !important;
            font-size: 13px;
        }

        ::-webkit-input-placeholder {
            color: #ccc;
            font-size: 13px;
        }

        input {
            font-family: 'Lucida Grande', Tahoma, Verdana, sans-serif;
            font-size: 14px;
        }

        input[type=text], input[type=password] {
            /*margin: 5px;*/
            padding: 0 10px;
            width: 280px;
            height: 34px;
            color: #404040;
            background: white;
            border: 1px solid;
            border-color: #c4c4c4 #d1d1d1 #d4d4d4;
            border-radius: 2px;
            /*outline: 2px solid #eff4f7;*/
            -moz-outline-radius: 3px;
            /*-webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.12);*/
            /*box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.12);*/
        }

        input[type=text]:focus, input[type=password]:focus {
            border-color: #7dc9e2;
            outline-color: #dceefc;
            outline-offset: 0;
        }

        input[type=submit] {
            padding: 5px 30px;
            width: 100px;
            height: 25px;
            font-size: 14px;
            font-weight: bold;
            color: #069;
            text-shadow: 0 1px #e3f1f1;
            background: #cde5ef;
            border: 1px solid;
            border-color: #b4ccce #b3c0c8 #9eb9c2;
            border-radius: 5px;
            outline: 0;
            -webkit-box-sizing: content-box;
            -moz-box-sizing: content-box;
            box-sizing: content-box;
            background-image: -webkit-linear-gradient(top, #edf5f8, #cde5ef);
            background-image: -moz-linear-gradient(top, #edf5f8, #cde5ef);
            background-image: -o-linear-gradient(top, #edf5f8, #cde5ef);
            background-image: linear-gradient(to bottom, #edf5f8, #cde5ef);
            -webkit-box-shadow: inset 0 1px white, 0 1px 2px rgba(0, 0, 0, 0.15);
            box-shadow: inset 0 1px white, 0 1px 2px rgba(0, 0, 0, 0.15);
            font-family: inherit;
        }

        input[type=submit]:active {
            background: #cde5ef;
            border-color: #9eb9c2 #b3c0c8 #b4ccce;
            -webkit-box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.2);
            box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.2);
        }

        .lt-ie9 input[type=text], .lt-ie9 input[type=password] {
            line-height: 34px;
        }

        .error {
            color: red;
        }

    </style>
</head>
<body ng-app="app.login">
<section class="container">
    <div class="login" ng-controller="loginCtrl">
        <h1>WMS系统</h1>

        <form name="loginForm" ng-submit="login()">
            <p>
                <input type="text" name="userId" placeholder="用户名" ng-model="user.userId" required>
                <span class="error" ng-show="loginForm.userId.$dirty && loginForm.userId.$error.required">请输入用户名</span>
            </p>

            <p>
                <input type="password" name="userPassword" placeholder="密码" ng-model="user.userPassword" required>
                <span class="error" ng-show="loginForm.userPassword.$dirty && loginForm.userPassword.$error.required">请输入密码</span>
            </p>

            <p class="remember_me">
                <label>
                    <input type="checkbox" name="remember_me" ng-model="rememberMe">
                    记住账号
                </label>
            </p>

            <p class="submit">
                <input type="submit" name="commit" value="登&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 录">
            </p>
        </form>
    </div>
</section>
<div class="foot">
    <p>Copyright &#169无锡江森</p>
</div>

<toaster-container toaster-options="{'position-class': 'toast-top-center', 'close-button': true}">
</toaster-container>

<div class="loading-box" ng-if="loading">
    <i class="fa fa-spinner fa-pulse fa-3x fa-fw"></i>
    <span class="sr-only">Loading...</span>
</div>

<script src="dist/js/vendor.min.js" type="text/javascript"></script>
@@scriptsTags

</body>

<script type="text/javascript">
    $(function () {
        FastClick.attach(document.body);
    });
</script>
</html>
